﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderView.aspx.cs" Inherits="RGPWEB.CH.OrderS.OrderView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="../../inc/Style/index.css" rel="Stylesheet" type="text/css" />
<link href="../../inc/Style/page.css" rel="Stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        function preview() {
            bdhtml = window.document.body.innerHTML;
            sprnstr = "<!--startprint-->";
            eprnstr = "<!--endprint-->";
            prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
            prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
            window.document.body.innerHTML = prnhtml;
            //window.preview();
            window.print();
        }
  </script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <!--startprint-->
    <table width="80%" border="0" cellpadding="2">
        <tr>
            <td style="width:40%">  
                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/logo2.png" />
            </td>
            <td style="width:45%">
                <%=orderno%>
            </td>
            <td style="width:15%">
                <table>
                    <tr><td><%=sendcountry %>&nbsp;</td></tr>
                    <tr><td><%=reccountry %>&nbsp;</td></tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="80%" border="0" cellpadding="2">
        <tr>
            <td>
                <table width="100%">
                    <tr>
                        <td>
                            <fieldset id="sendinfo" class="fieldsetborder">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table01_">
                                    <tr>
                                        <td class="td01_">寄件人</td>
                                        <td class="td02_"><%=sendmen%>&nbsp;</td>
                                        <td class="td01_">电话号码</td>
                                        <td class="td03_"><%=sendtel %>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_">参考号</td>
                                        <td class="td02_"><%=sendref %>&nbsp;</td>
                                        <td class="td01_">企业10编码</td>
                                        <td class="td03_"><%=sendeid%>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_">公司名称</td>
                                        <td class="td02_"><%=sendcompany %>&nbsp;</td>
                                        <td class="td01_">邮政编码</td>
                                        <td class="td03_"><%=sendpostcode %>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_">详细地址</td>
                                        <td colspan="3" class="td03_"><%=sendadd%>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_ nonebb">国家/地区</td>
                                      <td class="td02_ nonebb"><%=sendcountry %>&nbsp;</td>
                                        <td class="td01_ nonebb">城市</td>
                                      <td class="td03_ nonebb"><%=sendcity %>&nbsp;</td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                   </tr>
                   <tr>
                        <td>
                            <fieldset id="receptioninfo" class="fieldsetborder">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table01_">
                                    <tr>
                                        <td class="td01_">收件人</td>
                                        <td class="td02_"><%=recmen%>&nbsp;</td>
                                        <td class="td01_">电话号码</td>
                                        <td class="td03_"><%=rectel %>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_">企业10编码</td>
                                        <td class="td02_"><%=receid%>&nbsp;</td>
                                        <td class="td01_">邮政编码</td>
                                        <td class="td03_"><%=recpostcode %>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_">公司名称</td>
                                        <td colspan="3" class="td03_"><%=reccompany%>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_">详细地址</td>
                                        <td colspan="3" class="td03_"><%=receadd%>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td01_ nonebb">国家/地区</td>
                                        <td class="td02_ nonebb"><%=reccountry %>&nbsp;</td><td class="td01_ nonebb">城市</td>
                                        <td class="td03_ nonebb"><%=reccity%>&nbsp;</td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                   </tr>
                </table>
            </td>
            <td valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table02_">
                   <tr>
                        <td colspan="2" class="td01_">包装方式<%=paketype%>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <fieldset id="fil_shipment" class="fieldsetborder mt5">                      
                               <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table03_">
                                    <tr>
                                        <td colspan="6" class="td011_">总件数：<%=num %>&nbsp;
                                            总重量：<%=weightlb %>&nbsp;(LB),<%=weightkg%>&nbsp;(KG)体积：（长<%=llong %>&nbsp;
                                            宽：<%=width %>&nbsp;
                                            高：<%=height%>&nbsp;
                                            ）</td>
                                    </tr>
                                    <tr><td colspan="6" style="height:12px"></td></tr>
                                    <tr>
                                        <td class="td022_">产品名称</td>
                                        <td class="td022_">海关税则编码</td>
                                        <td class="td022_">原产地</td>
                                        <td class="td022_">数量</td>
                                        <td class="td022_">单价</td>
                                        <td class="td033_">总价</td>
                                    </tr>
                                     
                                    <tr>
                                        <td class="td044_"><%=product0 %>&nbsp;</td>
                                        <td class="td044_"><%=cuscode0 %>&nbsp;</td>
                                        <td class="td044_"><%=place0 %>&nbsp;</td>
                                        <td class="td044_"><%=num0 %>&nbsp;</td>
                                        <td class="td044_">$<%=price0%>&nbsp;</td>
                                        <td class="td055_">$<%=totalprice0%>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td044_"><%=product1%>&nbsp;</td>
                                        <td class="td044_"><%=cuscode1%>&nbsp;</td>
                                        <td class="td044_"><%=place1 %>&nbsp;</td>
                                        <td class="td044_"><%=num1 %>&nbsp;</td>
                                        <td class="td044_">$<%=price1 %>&nbsp;</td>
                                        <td class="td055_">$<%=totalprice1 %>&nbsp;</td>
                                    </tr>
                                   <tr>
                                        <td class="td044_"><%=product2 %>&nbsp;</td>
                                        <td class="td044_"><%=cuscode2 %>&nbsp;</td>
                                        <td class="td044_"><%=place2%>&nbsp;</td>
                                        <td class="td044_"><%=num2%>&nbsp;</td>
                                        <td class="td044_">$<%=price2%>&nbsp;</td>
                                        <td class="td055_">$<%=totalprice2%>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="td044_"></td>
                                        <td class="td044_"></td>
                                        <td class="td044_"></td>
                                        <td class="td044_"></td>
                                        <td class="td044_">合计</td>
                                        <td class="td055_">$<%=totalprice %>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="6">备注<%=demo %>&nbsp;</td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>        
       </table> 
       <!--endprint-->
       <input type="button" name="print" value="预览并打印" onclick="preview()">

        <input class="Noprn" type="button" onclick="window.print()" value="打印">      
    </form>
</body>
</html>
